<template>
  <div class="datail">
      <div class="title">
        <img :src="datail.firstsrc" alt="">
      </div>
      <div class="titletext">
        {{datail.title}}
      </div>
      <div class="classname">
        课程分类
      </div>
    <div class="Contentbig">
      <div class="classContent">
        <div class="classBox">
          <div>
            <img :src='datail.imgone' alt="">
          </div>
          <div>
            <p>{{datail.textone}}</p>
          </div>
        </div>
        <div class="classBox">
          <div>
            <img :src='datail.imgtwo' alt="">
          </div>
          <div>
            <p>{{datail.texttwo}}</p>
          </div>
        </div>
        <div class="classBox">
          <div>
            <img :src='datail.imgtre' alt="">
          </div>
          <div>
            <p>{{datail.texttre}}</p>
          </div>
        </div>
      </div>
      <div class="classtext">
          <h3>旅游英语之在餐厅</h3>
          <h5>主讲老师：沈秋臣</h5>
          <p>开课时间：2017:04-2017.05</p>
          <p>已报名人数: 300人</p>
        <div class="textbutton">
          我要报名
        </div>
      </div>
    </div>
    <div class="classname">
      课程特色
    </div>
    <div class="classdata">
        <h1>
          秋臣英语—多年培训辅导经验，助力每一位学员
        </h1>
      <p>任课教师，海外生活经验丰富，外教对本土风情有较强的认知，了解不同国家的用餐礼仪及文化， 一段段餐厅的历史，一盘盘特色菜的由来，在这您学到了英语，也将吃出了文化</p>
      <div class="numberdiv">
        <div class="numberBox">
          <div>200</div>
          <div>
            <p>thousand</p>
            <p>学员已近20万</p>
          </div>
        </div>
        <div class="numberBox">
          <div>10</div>
          <div>
            <p>years</p>
            <p>22座城市70余家中心</p>
          </div>
        </div>
        <div class="numberBox">
          <div>80%</div>
          <div>
            <p>face to face</p>
            <p>课堂互动时间</p>
          </div>
        </div>
      </div>
      <div class="teacher">
        <div class="teacherBox">
          <img src="static/images/course-img/teacher-1.jpg" alt="">
          <p>美籍华人</p>
        </div>
        <div class="teacherBox">
          <img src="static/images/course-img/teacher-2.jpg" alt="">
          <p>生动趣味的课堂实战</p>
        </div>
        <div class="teacherBox">
          <img src="static/images/course-img/teacher-3.jpg" alt="">
          <p>在二十多个国家从事过英语教学</p>
        </div>
        <div class="teacherBox">
          <img src="static/images/course-img/teacher-4.jpg" alt="">
          <p>在美联任教6年</p>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
    export default {
      name: 'datail',
      data: function () {
        return {
          datail: ''
        }
      },
      created: function (){
        this.datail=this.$route.query
        console.log(this.datail)
      }
    }
</script>
<style scoped>
  .datail{
    padding: 20px 10px;
  }
  .title{
    position: relative;
    /*border: 1px solid black;*/
    height: 25px;
    width: 100%;
    border-radius: 40px;
    background-color: #E26537;
  }
  .title img {
    display: inline-block;
    position: absolute;
    top: -40%;
    left: 43%;
    height: 50px;
    width: 50px;
  }
  .titletext{
    margin: 20px auto 10px;
    text-align: center;
    font-size: 16px;
    width: 40%;
    border-right: 1px solid darkgrey;
    border-left: 1px solid darkgrey;
  }
  .classname{
    /*margin-top: 30px;*/
    width: 30%;
    background-color: #E26537;
    height: 25px;
    font-size: 14px;
    color: white;
    text-align: center;
    border-radius: 20px;
    line-height: 25px;
  }
  .Contentbig{
    display: flex;
    padding: 10px 0 0 0;
    margin-bottom: 10px;
  }
  .classtext{
    border-radius: 30px;
    border: 2px solid #E26537;
    width: 48%;
  }
  .classContent{
    margin: 0 2%;
    border-radius: 30px;
    border: 2px solid #E26537;
    width: 48%;
    padding: 10px;
  }
  .classBox {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    margin-bottom: 5px;
    border-bottom: 1px solid darkgray;
  }
  .classBox:nth-child(3) {
    margin-bottom: 0;
  }
  .classBox img {
    height: 20px;
    width: 16px;
  }
  .classBox div:nth-child(2) {
    width: 80%;
    /*line-height: 60px;*/
    font-size:12px;
    color: #E26537
  }
  .classtext{
    text-align: center;
    display: flex;
    font-size: 12px;
    flex-direction: column;
  }
  .classtext h5{
    margin: 0;
  }
  .classtext h3{
    margin-bottom: 5px;
    color: #E26537;
    font-size: 13px;
  }
  .classtext p{
    font-size: 13px;
    margin: 5px;
  }
  .textbutton{
    margin: 0 auto;
    border-radius: 15px;
    background-color: #E26537;
    width: 50%;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    color: white;
    font-weight: bolder;
  }
  .classdata{
    color:  white;
    background-color: #E26537;
    height: 350px;
    width: 100%;
    margin-top: 10px;
    border-radius: 15px;
    text-align: center;
    padding-top: 10px;
  }
  .classdata h1{
    font-size: 16px;
  }
  .classdata>p {
    width: 80%;
    margin: 20px auto;
    font-size: 14px;
  }
  .numberdiv{
    display: flex;
    justify-content: space-around;
    /*border: 1px solid black;*/
    width: 95%;
    margin: 0 auto;
  }
  .numberBox{
    display: flex;
    justify-content: space-between;
    text-align: left;
  }
  .numberBox div:nth-child(1){
    font-size:18px;
    margin-right: 3px;
    color: blueviolet;
    /*line-height: 43px;*/
  }
  .numberBox:nth-child(1){
    padding-right: 15px;
  }
  .numberBox:nth-child(2){
    padding: 0 10px;
    border-left: solid 1px darkgray;
    border-right: solid 1px darkgray;
  }
  .numberBox:nth-child(3){
    padding-left: 10px;
  }
  .numberBox p{
    font-size: 10px;
    margin: 0;
  }
  .teacher{
     /*border: 1px black solid;*/
    /*height: 300px;*/
    width:90%;
    margin: 15px auto;
    display: flex;
    justify-content: space-around;
  }
  .teacherBox{
    /*border: 1px solid white;*/
    /*height:320px;*/
    width: 24%;
    padding: 5px;
    text-align: center;
    background-color: lightskyblue;
    border-radius: 10px;
    font-size: 10px;
    margin-right: 5px;
    /*color: ;*/
  }
  .teacherBox img {
    height: 66px;
    width: 46px;
  }
  .teacherBox p {
    margin: 3px;
  }
  .teacherBox:last-child{
    margin-right: 0;
  }
</style>
